﻿namespace NovelDownload
{
    /// <summary>
    /// 小说站点基类
    /// </summary>
    public class NovelSiteBase
    {
        /// <summary>
        /// 站点名称
        /// </summary>
        public string SiteName { get; set; }
        /// <summary>
        /// 站点主页
        /// </summary>
        public string SiteHomeUrl { get; set; }
        /// <summary>
        /// 站点搜索关键字提交地址
        /// </summary>
        public string SearchSubmitUrl { get; set; }
        /// <summary>
        /// 下载基地址
        /// </summary>
        public string BaseDownloadUrl { get; set; }



        /// <summary>
        /// 无参构造函数
        /// </summary>
        public NovelSiteBase() { }

        /// <summary>
        /// 全参构造函数
        /// </summary>
        /// <param name="siteName">站点名称</param>
        /// <param name="siteHomeUrl">站点主页</param>
        /// <param name="searchSubmitUrl">小说搜索提交地址</param>
        /// <param name="baseDownloadUrl">小说下载基地址</param>
        public NovelSiteBase(string siteName, string siteHomeUrl, string searchSubmitUrl, string baseDownloadUrl)
        {
            this.SiteName = siteName;
            this.SiteHomeUrl = siteHomeUrl;
            this.SearchSubmitUrl = searchSubmitUrl;
            this.BaseDownloadUrl = baseDownloadUrl;
        }
    }
}
